home *** CD-ROM | disk | FTP | other *** search
- #!/bin/sh
- set -e
- # Automatically added by dh_installinit
- if [ "$1" = install ] || [ "$1" = upgrade ]; then
- if [ -e "/etc/init.d/ufw" ] && [ ! -L "/etc/init.d/ufw" ]; then
- if [ "`md5sum \"/etc/init.d/ufw\" | sed -e \"s/ .*//\"`" != \
- "`dpkg-query -W -f='${Conffiles}' ufw | sed -n -e \"\\\\' /etc/init.d/ufw '{s/ obsolete$//;s/.* //p}\"`" ]
- then
- echo "Obsolete conffile /etc/init.d/ufw has been modified by you, renaming to .dpkg-bak"
- mv -f "/etc/init.d/ufw" "/etc/init.d/ufw.dpkg-bak"
- else
- rm -f "/etc/init.d/ufw"
- fi
- fi
- fi
- # End automatically added section
- # Automatically added by dh_pycentral
- case "$1" in
- install|upgrade)
- mkdir -p /var/lib/pycentral
- echo '# the presence of this file allows calling pkgremove on upgrade' \
- > /var/lib/pycentral/ufw.pkgremove
- esac
- # End automatically added section
-